package co.baiku.boot.im.easemob.exception;

import co.baiku.boot.im.easemob.message.EasemobMessage;

public class EasemobException extends RuntimeException {
    String message;

    public EasemobException() {
    }

    public EasemobException(EasemobMessage message) {
        this.message = message.getError() + ":" + message.getError_description();
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
